import { createSSRApp } from "vue";
import App from "./App.vue";
import {createPinia} from "pinia";
import piniaPluginPersistence from 'pinia-plugin-persistedstate'
import './styles/custom.scss'

const pinia=createPinia()
pinia.use(piniaPluginPersistence) // 持久化存储

export function createApp() {
  const app = createSSRApp(App);
  app.use(pinia)
  return {
    app,
  };
}
